package com.yixing.demo.mapper;

import com.yixing.demo.model.HistoryMessage;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MessageMapper {
    String getLastMessageBySessionId(int sessionId);

    List<HistoryMessage> getHistoryMessageBySessionId(int sessionId);

    void addMessage(HistoryMessage historyMessage);
}
